/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-05-18
 * Time: 13:48
 */
public class Test012 {
    public static int daYin(int n){
        if(n==1){
            return 1;
        }
        return daYin(n-1)+n;
    }
    public static void main(String[] args) {
        System.out.println(daYin(10));
    }
}
